package com.czmh.etc.onlinepubsys.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * 资讯传递参数
 * Created by eric on 2021-06-23.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CmsContentParam {
    @ApiModelProperty(value = "资讯ID, 编辑接口必传")
    private Long id;

    @ApiModelProperty(value = "资讯id")
    private Long categoryId;

    @NotEmpty
    @ApiModelProperty(value = "资讯标题",required = true)
    private String title;

    @NotEmpty
    @ApiModelProperty(value = "资讯logo")
    private String icon;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "展示状态(0不展示 1展示)")
    private Integer showStatus;

    @NotEmpty
    @ApiModelProperty(value = "资讯内容")
    private String content;

    @ApiModelProperty(value = "排序")
    private Integer sort;
}
